package com.basics.channel.service;

import com.basics.channel.entity.CyChannelCommentPrise;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 评论点赞表 服务类
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyChannelCommentPriseService extends IService<CyChannelCommentPrise> {

    /**
     * 判断用户是否已经点赞
     * @param userId
     * @param commentId
     * @return
     */
    boolean checkHasPrise(Long userId, String commentId);

    /**
     * 获取点赞数量
     * @param commentId
     * @return
     */
    int getPriseNum(String commentId);
}
